<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		
		// 对象构造器
		

		function Arr() {

			this.getMax = function (inArr) {
				max = inArr[0];
				for(var i in inArr){
					if(inArr[i]>max){
						max = inArr[i];
					}
				}
				return max;
			}
			
			this.turn = function (inArr) {
				cn =0;
				for (var i in inArr) {
					cn++;
				}
				newArr = [];
				for (var i in inArr) {
					
					newArr[cn-1-i] = inArr[i]; 
				}
				return newArr;
			}
		}

		obj = new Arr();


		res = obj.turn([53,3,3,3,3,3345]);

		document.write(res);

		console.log(obj)













	</script>
</head>
<body>
	
</body>
</html>